import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { DominionId } from "./DominionId";
type int = number;
//class SDominionInvite
    
    export  class SDominionInvite extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SDominionInvite();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            this.mainActId.__write(arg1);
            this.mainDefId.__write(arg1);
            arg1.writeInt(this.force);
            arg1.writeInt(this.x);
            arg1.writeInt(this.y);
            arg1.writeString(this.name);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.mainActId = new DominionId();
            this.mainActId.__read(arg1);
            this.mainDefId = new DominionId();
            this.mainDefId.__read(arg1);
            this.force = arg1.readInt();
            this.x = arg1.readInt();
            this.y = arg1.readInt();
            this.name = arg1.readString();
            return;
        }

        public /* const */_type: int=2075;

        public /* var */mainActId: DominionId;

        public /* var */mainDefId: DominionId;

        public /* var */force: int;

        public /* var */x: int;

        public /* var */y: int;

        public /* var */name: string;

        public static /* var */_regist: SDominionInvite;
    }

            SDominionInvite._regist = new SDominionInvite(true);
        